<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>商户管理</title>
		<link rel="stylesheet" type="text/css" href="css/shgl.css"/>
		<link rel="stylesheet" type="text/css" href="css/guanlixitong.css"/>
		<!--<link rel="stylesheet" type="text/css" href="css/comm.css"/>-->
	</head>
	<body>
			<div class="main_content">
				<div class="con_left">
					<div class="l-box">
						<a href="shgl.html">添加商户</a>
					</div>
					<div class="l-box in">
						<a href="shgl2.html">商户管理</a>
					</div>
				</div>
				<div class="con_right fl">
					<div class="r_main">
						<form action="" method="post">
						<div class="warp-left">
							<div class="group-radio">
								<div class="i-radio d-i-b">
								用户启动界面：
									<div class="f-inp-r">
										<input type="radio" name="zhuangtai" checked="checked"/><i class="ii"></i>
									</div>
									<span>综合</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="zhuangtai"/><i></i>
									</div>
									<span>洗车机</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="zhuangtai"/><i></i>
									</div>
									<span>售水机</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="zhuangtai"/><i></i>
									</div>
									<span>洗衣机</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="zhuangtai"/><i></i>
									</div>
									<span>支付盒子</span>
								</div>
							</div>
							<div class="s-one d-i-b">上级商户：
								<div class="f-inp-s d-i-b">
									<div>
										<select name='make'>
										    <option value='全部' selected>全部</option>
										</select>
									</div>
									<div class="s_img">
										<img src="img/select.png"/>
									</div>
								</div>
							</div>
							<div class="info-con">
								<p>商户编号：</p><input type="text" name="" id="" value="1008" class="read" readonly="readonly"/><span>（机器编号由非零整数组成。【1-9999】）</span>
							</div>
							<div class="info-con">
								<p>账号：</p><input type="text" name="" id="" value="youbai" class="read" readonly="readonly"/><span>（账号用于登录系统，由字母、数字组成）</span>
							</div>
							<div class="info-con">
								<p>企业名称：</p><input type="text" name="" id="input1" value="" /><span style="color: red;display: none;">*</span>
							</div>
							<div class="info-con">
								<p>企业地址：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con">
								<p>联系电话：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con">
								<p>负责人：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con">
								<p>负责人电话：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con">
								<p>QQ：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con">
								<p>电子邮件：</p><input type="text" name="" id="input2" value="" />
								<span style="color: red;display: none;">*</span>
								<span style="color: red;display: none;">邮箱格式不对</span>
							</div>
							<div class="info-con">
								<p>微信账号：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con zhifu">
								<p>微信支付：</p><input type="checkbox" name="" id="" value="" /><span>选择“√”后使用商户自己的微信支付接口，否则使用厂家的<br />
自己的微信支付接口</span>
							</div>
							<div class="info-con">
								<p>支付宝账号：</p><input type="text" name="" id="" value="" />
							</div>
							<div class="info-con zhifu">
								<p>支付宝支付：</p><input type="checkbox" name="" id="" value="" /><span>选择“√”后使用商户自己的微信支付接口，否则使用厂家的<br />
自己的微信支付接口</span>
							</div>
						</div>
						<div class="mid-line">
							
						</div>
						<div class="warp-right">
							<div class="group-radio">
								<div class="i-radio d-i-b" style="margin-right: 46px;">
								<p>微信强制关注：</p>
									<div class="f-inp-r">
										<input type="radio" name="gzweixin" checked="checked"/><i class="ii"></i>
									</div>
									<span>是</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="gzweixin"/><i></i>
									</div>
									<span>否</span>
								</div>
							</div>
							<div class="group-radio">
								<div class="i-radio d-i-b">
								<p>是否开通Api：</p>
									<div class="f-inp-r">
										<input type="radio" name="api" checked="checked"/><i class="ii"></i>
									</div>
									<span>开通</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="api"/><i></i>
									</div>
									<span>关闭</span>
								</div>
							</div>
							<div class="group-radio">
								<div class="i-radio d-i-b">
								<p>会员：</p>
									<div class="f-inp-r">
										<input type="radio" name="huiyuan" checked="checked"/><i class="ii"></i>
									</div>
									<span>开通</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="huiyuan"/><i></i>
									</div>
									<span>关闭</span>
								</div>
							</div>
							<div class="group-radio">
								<div class="i-radio d-i-b">
								<p>是否开通商户通：</p>
									<div class="f-inp-r">
										<input type="radio" name="shhtong" checked="checked"/><i class="ii"></i>
									</div>
									<span>开通</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="shhtong"/><i></i>
									</div>
									<span>关闭</span>
								</div>
							</div>
							<div class="group-radio">
								<div class="i-radio d-i-b">
								<p>商户启用状态：</p>
									<div class="f-inp-r">
										<input type="radio" name="shhqiyong" checked="checked"/><i class="ii"></i>
									</div>
									<span>启用</span>
								</div>
								<div class="i-radio d-i-b">
									<div class="f-inp-r">
										<input type="radio" name="shhqiyong"/><i></i>
									</div>
									<span>停用</span>
								</div>
							</div>
							<div class="uploadLogo">
								<p>LOGO：</p>
								<div>
									<span style="color:black">选择文件：<em>未选择任何文件</em></span>
									<input type="file" name="" id="inputs" value="" />
									<img src="img/shangchuanlogo.jpg" alt="" />
									<div id='dd'></div>
									<span>格式：bmp/gif/jpeg/jpg/png<br />建议图片尺寸：xxpx × 50px</span>
									<button>上传</button>
								</div>
							</div>
							<div class="bgimg">
								<p>登录界面背景图片：</p>
								<div>
									<span style="color:black">选择文件：<em>未选择任何文件</em></span>
									<input type="file" name="" id="inputs2" value="" />
									<img src="img/bglogo.jpg" alt="" />
									<div id='dd2'></div>
									<span>格式：bmp/gif/jpeg/jpg/png<br />建议图片尺寸：1920px × 564px</span><button>上传</button>
								</div>
							</div>
							<input type="submit" name="" id="" value="保存" class="btn"/>
							<input type="button" onclick="window.location.href='shgl2.html'" name="" id="" value="返回" class="btn back"/>
						</div>
						</form>
					</div>
				</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/shgl.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(':submit').on('click',function(){
				$('#input1').nextAll().eq(0).css('display','none');	
				$('#input2').nextAll().eq(0).css('display','none');					
				
				var input1=$.trim($('#input1').val());
				var input2=$.trim($('#input2').val());
				var r=/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/;
				if(!input1){
					$('#input1').nextAll().eq(0).css('display','inline-block');					
					return false;
				}else if(!input2){
					$('#input2').nextAll().eq(0).css('display','inline-block');					
					return false;
				}else if(!r.test(input2)){
					$('#input2').nextAll().eq(1).css('display','inline-block');					
					return false;
				}else{
					return true;
				}
			})
		</script>
	</body>
</html>
